#include <stdio.h>
#include <stdlib.h>

//https://www.nowcoder.com/practice/72347ee949dc47399186ee183632f303?tpId=290&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D290

typedef struct STR {
    int count;
    char str[0];
}STR;

int main() {
    int num = 0;
    while (~scanf("%d", &num)) {
        num *= 2;
        STR *Str1 = (STR *) malloc(sizeof(STR) + num * sizeof(char));
        STR *Str2 = (STR *) malloc(sizeof(STR) + num * sizeof(char));
        Str1->count = num;
        Str2->count = num;
        Str1->str[num - 1] = '\0';
        Str2->str[num - 1] = '\0';
        Str1->str[0] = '*';
        Str2->str[0] = '*';
        Str1->str[num - 2] = '*';
        Str2->str[num - 2] = '*';
        for (int i = 1; i < num - 2; i++) {
            Str1->str[i] = '*';
            Str2->str[i] = ' ';
        }
        for (int i = 1; i < num - 2; i += 2) {
            Str1->str[i] = ' ';
        }
        printf("%s\n", Str1->str);
        for (int i = 1; i < num - 4; i += 2) {
            printf("%s\n", Str2->str);
        }
        printf("%s\n", Str1->str);
        free(Str1);
        free(Str2);
        Str1 = NULL;
        Str2 = NULL;
    }
    return 0;
}